/* Reset some default styles */

body{
    background-image: linear-gradient(rgba(255, 251, 254, 0.92),rgba(255, 251, 254, 0.96)),url(../GIFFILES/purplestars2.gif);
    background-size: 5em;
}

.image-rollover-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 20px 0;
    padding: 10px 0;

    /* fade the strip out at both ends instead of chopping it off */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.image-rollover-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.image-rollover-track img {
    height: 8em;
    width: auto;
    margin-right: 20px;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    object-fit: cover;
    transition: transform var(--med) var(--ease),
                box-shadow var(--med) var(--ease);
}

.image-rollover-track img:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Pause animation on hover */
.image-rollover-container:hover .image-rollover-track {
    animation-play-state: paused;
}





.socialsButton{
    padding: 0.5em;
    border-radius: 50%;
    img{
        width: 2em;
        height: 2em;
    }
}


.socials{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
    margin-top: 1em;
    a{
        padding: 0.4em;
        border-radius: 50%;
        transition: transform var(--med) var(--ease),
                    background-color var(--fast) var(--ease);
    }
    a:hover{
        background: var(--purple-soft);
        transform: translateY(-3px);
    }
    img{
        display: block;
        width: 3em;
        height: auto;
        border-radius: 50%;
        box-shadow: var(--shadow-sm);
    }
}


.welcomeBox{
    background-image: linear-gradient(rgba(255, 251, 254, 0.86),rgba(255, 251, 254, 0.92)),url(../GIFFILES/starPattern.gif);
    background-size: 16em;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 1.5em;
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 2em;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    margin: 1em auto;
    width: min(72em, calc(100% - 2em));
    img{
        width: 100%;
        height: auto;
        /* the lopsided corners are the fun bit - just gentler now */
        border-radius: var(--r-lg) 0.5em var(--r-lg) 0.5em;
        box-shadow: var(--shadow-md);
        border: 2px solid rgba(255, 255, 255, 0.9);
        transition: transform var(--slow) var(--ease);
    }
    img:hover{
        transform: translateY(-4px) rotate(-1deg);
    }
    /* leave .quote alone - it sets its own light text on a dark panel */
    p:not(.quote){
        font-style: italic;
        font-size: 1.15em;
        color: var(--ink-soft);
        max-width: 44em;
        margin: 0em auto;
    }
    h2{
        padding: 0.5em 0em 0.6em 0em;
    }
}


.redirects-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11em, 1fr));
    gap: 1em;
    width: min(72em, calc(100% - 2em));
    margin: 2em auto 3em auto;
}

.redirect-item{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 14em;
    margin: 0em;
    padding: 0em;
    overflow: hidden;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--med) var(--ease),
                box-shadow var(--med) var(--ease),
                filter var(--med) var(--ease);
    a{
        display: flex;
        align-items: flex-end;
        justify-content: center;
        width: 100%;
        height: 100%;
        text-align: center;
        color: white;
        font-size: 1.25em;
        letter-spacing: 0.03em;
        padding: 1em 0.75em;
        border-radius: 0px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
        transition: transform var(--med) var(--ease);
    }
    a:hover{
        background: transparent;
        color: white;
        transform: translateY(-2px);
    }
}

.redirect-item:hover{
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    filter: saturate(1.15) brightness(1.08);
}

/* thin highlight so the tiles read as cards, not cut outs */
.redirect-item::after{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.22);
    pointer-events: none;
}


#menuredirect{
    background-image: linear-gradient(rgba(34, 22, 48, 0.05) 42%, rgba(34, 22, 48, 0.88)),url(../GIFFILES/bakingIcon.gif);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


#aboutredirect{
    background-image: linear-gradient(rgba(34, 22, 48, 0.05) 42%, rgba(34, 22, 48, 0.88)),url(../GIFFILES/wave.gif);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#galleryredirect{
    background-image: linear-gradient(rgba(34, 22, 48, 0.05) 42%, rgba(34, 22, 48, 0.88)),url(../GIFFILES/menuIcon.gif);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#productredirect{
    background-image: linear-gradient(rgba(34, 22, 48, 0.05) 42%, rgba(34, 22, 48, 0.88)),url(../GIFFILES/cakeBetter.gif);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#reviewredirect{
    background-image: linear-gradient(rgba(34, 22, 48, 0.05) 42%, rgba(34, 22, 48, 0.88)),url(../GIFFILES/pattern2.gif);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Optional: Responsive adjustments */
@media (max-width: 768px) {
    .image-rollover-track img {
        height: 7em;
        margin-right: 10px;
    }

    .redirects-container{
        display: flex;
        flex-direction: column;
        gap: 0.75em;
        margin: 1.5em auto 2em auto;
        width: calc(100% - 2em);
    }

    .redirect-item{
        min-height: 8em;
        border-radius: var(--r-md);
        a{
            font-size: 1.2em;
        }
    }

    .welcomeBox{
        display: flex;
        flex-direction: column;
        padding: 1.25em;
        width: calc(100% - 2em);
        p{
            padding: 0.5em;
            font-size: 1.05em;
        }
        h2{
            padding: 0.5em;
            text-align: center;
        }
        img{
            width: 70%;
        }
    }
}
